#!/bin/bash
# Build freon's package.list
# Version: 0.0.1
# (C) Chris Dorman, 2020 GPLv3+

MIRRORPATH="/opt/htdocs/freon/files/packages"

echo "MAKE SURE THE ONLY .tgz FILES ARE PACKAGES IN THE REPO WITHIN THE SAME DIRECTORY OF THIS FILE!"

sleep 2

for f in *.tgz
do
	echo "${f%.tgz}" >> package.list
done

cp -a * $MIRRORPATH/.

cp -a ../deps/* $MIRRORPATH/.
